package com.link.base.base.message.push.model;

import com.link.core.basic.model.BasicModel;
import com.link.core.util.StringUtils;

/**
 * 消息对象
 * 
 * @author ouyangzhenqiang
 * @date 2018/10/26
 */
public class PushInfo extends BasicModel {
    /**用户ID*/
    private Long userId;
    /**消息标题*/
    private String pushTitle;
    /**消息内容*/
    private String pushNote;
    /**是否已读*/
    private String isRead;
    /**消息模块*/
    private String module;
    /**模块对象ID*/
    private Long objectId;
    /**提醒时间*/
    private String remindDt;

    /**移动推送标识*/
    private String appPushFlag;
    /**移动处理标识*/
    private String appDealFlag;
    /**移动失败次数*/
    private String appFailNum;
    /**移动处理日期*/
    private String appDealDate;
    /**移动处理日志*/
    private String appDealMsg;

    /**Web推送标识*/
    private String webPushFlag;
    /**Web处理标识*/
    private String webDealFlag;
    /**Web登录弹屏标识*/
    private String webLoginFlag;

    /**立即推送标识，若该参数为Y，则方法处理里会新建成功之后立即推送，工作流不会捕捉该数据进行处理*/
    private String pushNowFlag;

    /**应用Id*/
    private String appId;
    /**推送设备唯一标识 - 极光*/
    private String token;
    /**设备平台类型 安卓or苹果*/
    private String platform;
    /**第三方手机厂商推送服务的设备token*/
    private String pushServiceToken;
    /**第三方手机厂商推送服务的推送类型*/
    private String pushServiceType;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPushNote() {
        return pushNote;
    }

    public void setPushNote(String pushNote) {
        this.pushNote = pushNote;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getModule() {
        return StringUtils.isBlank(this.module) ? "push" : this.module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public Long getObjectId() {
        return objectId;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    public String getRemindDt() {
        return remindDt;
    }

    public void setRemindDt(String remindDt) {
        this.remindDt = remindDt;
    }

    public String getAppDealFlag() {
        return appDealFlag;
    }

    public void setAppDealFlag(String appDealFlag) {
        this.appDealFlag = appDealFlag;
    }

    public String getAppFailNum() {
        return appFailNum;
    }

    public void setAppFailNum(String appFailNum) {
        this.appFailNum = appFailNum;
    }

    public String getPushTitle() {
        return pushTitle;
    }

    public void setPushTitle(String pushTitle) {
        this.pushTitle = pushTitle;
    }

    public String getAppPushFlag() {
        return StringUtils.isBlank(this.appPushFlag) ? "N" : this.appPushFlag;
    }

    public void setAppPushFlag(String appPushFlag) {
        this.appPushFlag = appPushFlag;
    }

    public String getAppDealDate() {
        return appDealDate;
    }

    public void setAppDealDate(String appDealDate) {
        this.appDealDate = appDealDate;
    }

    public String getWebPushFlag() {
        return StringUtils.isBlank(this.webPushFlag) ? "N" : this.webPushFlag;
    }

    public void setWebPushFlag(String webPushFlag) {
        this.webPushFlag = webPushFlag;
    }

    public String getWebDealFlag() {
        return webDealFlag;
    }

    public void setWebDealFlag(String webDealFlag) {
        this.webDealFlag = webDealFlag;
    }

    public String getAppDealMsg() {
        return appDealMsg;
    }

    public void setAppDealMsg(String appDealMsg) {
        this.appDealMsg = appDealMsg;
    }

    public String getWebLoginFlag() {
        return webLoginFlag;
    }

    public void setWebLoginFlag(String webLoginFlag) {
        this.webLoginFlag = webLoginFlag;
    }

    public String getPushNowFlag() {
        return StringUtils.isBlank(this.pushNowFlag) ? "N" : this.pushNowFlag;
    }

    public void setPushNowFlag(String pushNowFlag) {
        this.pushNowFlag = pushNowFlag;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getPushServiceToken() {
        return pushServiceToken;
    }

    public void setPushServiceToken(String pushServiceToken) {
        this.pushServiceToken = pushServiceToken;
    }

    public String getPushServiceType() {
        return pushServiceType;
    }

    public void setPushServiceType(String pushServiceType) {
        this.pushServiceType = pushServiceType;
    }
}
